package com.careerraiser.parent;

import java.util.ArrayList;

import com.careerraiser.child.SoundMaker;

/**
 * 
 */


/**
 * @author Lenovo
 *
 */
public class Animal implements SoundMaker{
      private String name="testname";
     private int weight=50;
     static ArrayList<Animal> myList = new ArrayList<Animal>();
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Hello World");

	}
	
	public Animal(){
		System.out.println("in Default Animal");
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public Animal setName(String name) {
		this.name = name;
		return this;
	}
	/**
	 * @return the weight
	 */
	public int getWeight() {
		return weight;
	}
	/**
	 * @param weight the weight to set
	 */
	public Animal setWeight(int weight) {
		
		this.weight = weight;
		return this;
	}
	public void makeSound(){
		System.out.println("AnimalSound");
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return name+":"+weight;
	}
	

}
